package org.su.webadapter.webimpl;

import org.su.generalmvc.core.IServiceContext;

import javax.servlet.ServletContext;

/**
 * Created by yangchuan on 15/6/11.
 */
public class ServiceContext  implements IServiceContext {

    ServletContext servletContext;

    public ServiceContext(ServletContext servletContext){
        this.servletContext = servletContext;
    }


    @Override
    public Object getAttribute(String key) {
        return servletContext.getAttribute(key);
    }

    @Override
    public Object getContext() {
        return servletContext;
    }
}
